﻿@model IEnumerable<WebAuthTest.Models.ApplicationUser>
@{
    ViewBag.Title = "用户列表";
}

<h2>用户列表</h2>
<p>
    @Html.ActionLink("新建用户","Create")
</p>

<table class="table">
    <tr>
        <th>@Html.DisplayNameFor(m => m.UserName)</th>
        <th></th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(m => item.UserName)
            </td>
            <td>
                @Html.ActionLink("编辑用户", "Edit", new {id = item.Id})|
                @Html.ActionLink("用户详情", "Details", new {id = item.Id})|
                @Html.ActionLink("删除用户", "Delete", new { id = item.Id })|
            </td>
        </tr>
        
    }
</table>